//
//  DividendHead.m
//  MUBATE
//
//  Created by sunbin on 2017/2/27.
//  Copyright © 2017年 Quanli. All rights reserved.
//

#import "DividendHead.h"
#import "BarView.h"
@interface DividendHead()

@property (strong, nonatomic) BarView *barView;


@end
@implementation DividendHead
{

}
-(void)awakeFromNib{
    [super awakeFromNib];

    [self addSubview:[self barView]];

}



-(BarView *)barView{
    if (!_barView) {
        _barView = [[BarView alloc] initWithFrame:CGRectMake(0, 20,SCREEN_WIDTH, HEIGHT(_chartView)) target:@[@"0",@"50",@"100"] rate:75 barMake:barDetai completeBarColor:[UIColor greenColor] unCompleteBarColor:[UIColor blueColor]];
        
        CGFloat centY;
        if (Iphone5) {
            centY = self.py_centerY -10;
        }else{
            centY = self.py_centerY ;
        }
        _barView.py_centerY = centY;
    }
    return _barView;
}

@end
